<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="jxt.elt.common.Fun"%>
<%@ include file="../common/hrlogcheck.jsp" %>
<%@page import="jxt.elt.common.DbPool"%>
<%request.setCharacterEncoding("UTF-8"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>公司公告预览</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<%=request.getContextPath() %>/images/favicon.ico" type="image/x-icon" /></head>
  <body>

<%

Connection conn=DbPool.getInstance().getConnection();
conn.setAutoCommit(false);
int conncommit=1;
Statement stmt=conn.createStatement();
ResultSet rs=null;
String strsql="",
// bt="",
nr="";
String iid=request.getParameter("iid");
if (iid==null) iid="";
try
{
			if (iid!=null && iid.length()>0)
			{
				strsql="select bt,nr from tbl_hrgb where nid="+iid;
				rs=stmt.executeQuery(strsql);
				if (rs.next())
				{
					// bt=rs.getString("bt");
					nr=rs.getString("nr");
					request.setAttribute("nr", nr);
				}
				rs.close();	
			}
%>		
<table align="center">
	<tr>
		<td style="word-wrap:break-word">
			<div style="width:750px;widword-wrap:break-word;">
				<script type="text/javascript">
					var nnr = '';
					try{
						nnr = unescape('${nr}');
					}catch(err){
						nnr = '${nr}';
					}
					document.write(nnr);
				</script>							
			</div>
		</td>
	</tr>
</table>
<%
	
}
  catch(Exception e)
{			
	e.printStackTrace();
	conn.rollback();
	conncommit=0;
}
finally
{
	if (!conn.isClosed())
	{	
		if (conncommit==1)
			conn.commit();
		conn.close();
	}
}
   %>
    </body>
</html>